'use strict';

const db = uniCloud.database();
const collection = db.collection('medicine');
exports.main = async (event, context) => {
	const { _id } = event;
	const res = await collection.doc(_id).remove();

	//返回数据给客户端
	return {
		code: 0,
		msg: '删除成功'
	};
};